package ast;

public class Condition implements Expression {

	private Expression condition;
	private Expression ifClause;
	private Expression elseClause;

	public Condition(Expression condition, Expression ifClause,
			Expression elseClause) {
		this.condition = condition;
		this.ifClause = ifClause;
		this.elseClause = elseClause;
	}

	public Expression getCondition() {
		return condition;
	}

	public Expression getIfClause() {
		return ifClause;
	}

	public Expression getElseClause() {
		return elseClause;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visitCondition(this);
	}

}
